package com.wzq.permission.center.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wzq.permission.client.model.admin.UserModel;

/**
 * User Mapper
 * @author Administrator
 *
 */
public interface UserMapper extends BaseMapper {
	/**
	 * 登录
	 * @param userModel
	 * @return
	 */
	UserModel login(@Param("userModel")UserModel userModel,@Param("appKey")String appKey);
	
	int logicDelete(@Param("userIds")Long[] userIds);
	
	/**
	 * 判断用户名是否存在
	 * @param userName 用户名
	 * @return int 
	 */
	int isExitUserName(@Param("userName") String userName);
	
	/**
     * 根据用户Id和系统ID查询用户所有的角色ID
     * @param userId 用户ID
     * @param applicationId 系统ID
     * @return List<Long>
     */
    List<Long> queryUserAllRoleId(@Param("userId")Long userId,@Param("applicationId")Long applicationId); 
}
